package cn.exrick.xboot.base.vo

import com.baomidou.mybatisplus.annotation.FieldFill
import com.baomidou.mybatisplus.annotation.TableField
import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.springframework.format.annotation.DateTimeFormat
import java.util.*
import javax.persistence.Column

@ApiModel("违章纪录")
data class BreakRolesRecordListVo (

        @ApiModelProperty("id")
        var id: String? = null,

        @ApiModelProperty("创建者", hidden = true)
        @TableField(fill = FieldFill.INSERT)
        var createBy: String = "",

        @ApiModelProperty("企业名字")
        var enterpriseName: String? = null,

        @ApiModelProperty("岗位名字")
        var jobName: String? = null,

        @ApiModelProperty("昵称")
        var nickname: String? = null,

        @ApiModelProperty("违章时间")
        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        var breakRoleTime: Date? = null,

        @ApiModelProperty("违章内容")
        var breakRoleContent: String? = null,

        @ApiModelProperty("违章依据")
        @Column(length = 1000)
        var breakRoleAccording: String? = null,

        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "创建时间", hidden = true)
        var createTime: Date? = null

)